package com.exam.stream;

import java.text.SimpleDateFormat;
import java.util.Date;

public class test03 {
    public static void main(String[] args) {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        String dateNow = sdf.format(new Date());
//        System.out.println("当前时间为："+new SimpleDateFormat("yyyy-MM-dd").format(new Date()));

        System.out.println("DATE_FORMAT(created_time,'%Y-%m-%d') = '"+dateNow+"'");

    }
}
